﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Web7.Logging;

namespace Web7.Container.Controllers
{

	public class ErrorController : Controller
	{
		public ActionResult Index(int? code)
		{
			Exception exp = RouteData.Values["exception"] as Exception;

			LogHelper.Warn(typeof (ErrorController), "发生了 HTTP 请求中的异常", code, exp);

			
			return View("~/Container/Views/Error/Index.cshtml", exp);
		}
	}
}
